<template>
	<view>
		<!-- <view class="status_bar"></view> -->
		<view class="header status_bar" :class="scrrol == true ? 'scrrolHeader' : ''">
			<view class="back iconfont" :class="scrrol == true ? 'scrrolHeader02' : ''" @tap="backPage">&#xe779;</view>
			
		</view>

		<swiper class="swiper_box" :autoplay="true" :interval="3000" :duration="200">
			<block v-for="(item, index) in info.goods_images" :key="index">
				<swiper-item style="height: 100%;">
					<view class="swiper-item" style="height: 100%;">
						<image :src="item" mode="scaleToFill"></image>
						<view class="num_box">{{ index + 1 }}/{{ info.goods_images.length }}</view>
					</view>
				</swiper-item>
			</block>
		</swiper>

		<view class="money_box" v-if="info.goods_price != undefined">
			<view class="type">会员价</view>
			¥{{ info.goods_price }}
			<view class="y_money">
				¥{{ info.goods_market_price }}
				<view class="line"></view>
			</view>
		</view>
		<view class="title_box">{{ info.goods_name }}</view>
		<view class="coupon_box">
			<view class="text" v-if="info.quota_num != 0">限购数量：{{ info.quota_num }}</view>
		</view>

		<view class="message_box">
			<view class="message" v-if="info.shipping_type == 1">配送类型:快递</view>
			<view class="message" v-if="info.shipping_type == 2">配送类型:及时达</view>
			<view class="message" v-if="info.shipping_type == 3">配送类型:次日达</view>
			<view class="message" v-if="info.goods_sale != undefined">已售:{{ info.goods_sale }}</view>
			<view class="message" v-if="info.goods_stock != undefined">库存:{{info.goods_stock}}</view>
		</view>

		
		<view class="pageTitle">商品详情</view>
		
		<!-- 富文本 -->
		<view class="content_box">
			<!-- <rich-text class="fwb" v-html="strings"></rich-text> -->
			<view class="fwb" v-html="strings"></view>
		</view>
		
		<!-- 富文本 -->
		
		<view class="footer_box">
			<view class="rule" :class="typeData != 1 ? 'ruleStyle' : ''">拼团购物享特价，拼团完成商家将于24小时内安排发货（不可抗力因素除外）</view>
			<view class="footer">
				<!-- <view class="menu">
					<view class="bt" @tap="setCollect">
						<view class="icon iconfont" :class="collect ? 'collectcolor' : ''">&#xe8b9;</view>
						<view class="text" :class="collect ? 'collectcolor' : ''">收藏</view>
					</view>
				</view> -->
				<!-- <view class="menu" :data-goodstype="info.is_collective" data-status="1" @tap="openCar" v-if="typeData == 1">加入购物车</view> -->
				<view class="menu" data-type="0" @tap="openCar" v-if="typeData == 1 || typeData != 1">立即购买</view>
				<!-- <view class="menu" data-type="-1" @tap="openCar" v-if="typeData != 1">发起拼团</view> -->
			</view>
			<view class="clear_box09" v-if="platform != 'android'"></view>
		</view>

		<!-- 规格 -->
		<view class="show_box" v-show="pupu_show" @tap="openCar">
			<view class="pupu_box" @tap.stop="">
				<view class="goods_box">
					<image class="bg01" :src="info.goods_images[0]" mode=""></image>
					<view class="title">{{ info.goods_name }}</view>
					<view class="num">库存:{{ info.goods_stock }}</view>
					<view class="money">¥{{ skuPrice }}</view>
					<view class="close  iconfont" @tap="closeSku">&#xe6b5;</view>
				</view>
				<view class="norms_box">
					<block v-for="(item, index) in attrList">
						<view class="title">{{ item.name }}</view>
						<view class="menu_box">
							<block v-for="(item02, index02) in item.specs">
								<view class="menu" :class="{ selected: item02.check }" @tap="setContentMenu(item.specs, index02)">{{ item02.name }}</view>
							</block>
						</view>
					</block>
				</view>

				<view class="number_box">
					<view class="text">
						选择数量
						<view class="n"></view>
					</view>
					<view class="num_box">
						<view class="symbol iconfont" @tap="subNumber">&#xe62f;</view>
						<view class="num">{{ num }}</view>
						<view class="symbol iconfont" @tap="addNumber">&#xe639;</view>
					</view>
				</view>
				<view class="define" @tap="goBuyGoods">确定</view>
			</view>
		</view>

		<!-- 分享 -->

		<view class="share_bg" v-show="!off" @click.stop="declick">
			<view class="share_box" :animation="animationData" v-show="heard">
				<view class="share" @tap.stop="">
					<!-- <view class="menu" @tap="keepImg">
						<image src="" mode="widthFix"></image>
						<view class="text">分享图片</view>
					</view> -->
					<view class="menu" :data-img="info.goods_images[0]" :data-id="goodsId" @tap.stop="goShare">
						<image style="width: 45px;" src="" mode="widthFix"></image>
						<view class="text">微信好友</view>
					</view>
					<!-- <view class="menu">
						<image src="" mode="widthFix"></image>
						<view class="text">朋友圈</view>
					</view> -->
				</view>
				<!-- <view class="close iconfont" @click="declick">&#xe658;</view> -->
			</view>
		</view>

		<!-- 保存图片提示框 -->
		<view class="show_box" v-show="keepimg" @tap="closeKeep">
			<view class="keep_box" @tap.stop="">
				<view class="icon iconfont">&#xe687;</view>
				<view class="text">
					图片已生成并保存在手机相册，
					<br />
					你也可以现在分享给微信好友。
				</view>
				<view class="menu">分享给微信好友</view>
				<view class="cancel iconfont" @tap="closeKeep">&#xe631;</view>
			</view>
		</view>

		<!-- 拼单提示框 -->
		<view class="show_box" v-show="spell" @tap="autoSpell">
			<view class="keep_box" @tap.stop="">
				<view class="spell_text">参与15161616****的拼单</view>
				<view class="img_box">
					<view class="img">
						<image src="" mode=""></image>
						<view class="label">拼主</view>
					</view>
					<view class="img"><image src="" mode=""></image></view>
				</view>
				<view class="menu">参与拼单</view>
				<view class="cancel iconfont" @tap="autoSpell">&#xe631;</view>
			</view>
		</view>

		
	</view>
</template>

<script>


export default {
	data() {
		return {
			system: '', // 系统版本
			platform: '', // 平台
			Carstatus: '',
			skuPrice: '',
			typeData: '', //商品类型
			scrrol: false,
			typeId: '',
			skuId: '',
			page: 1,
			attrList: '',
			goodsId: '',
			timestamp: Date.parse(new Date()) / 1000,
			collect: false,
			spell: false,
			n: 0,
			shopstar: 4,
			that: this,
			keepimg: false,
			animationData: {},
			off: true,
			heard: true,
			timesdata: [],
			join: [],
			num: 1,
			pupu_show: false,
			select: 0,
			info: [],
			strings: '',
			goods: {
				goods_img: '',
				title: '这里是标题这里是标题这里是标题这里是标题这里是标题',
				num: '1230',
				money: '666',
				norms: [
					{
						t: '尺码',
						m: [
							{
								text: 'l'
							},
							{
								text: 'xl'
							},
							{
								text: 'xxl'
							},
							{
								text: 'xxxl'
							}
						]
					},
					{
						t: '颜色',
						m: [
							{
								text: '红色'
							},
							{
								text: '白色'
							},
							{
								text: '蓝色'
							},
							{
								text: '绿色'
							},
							{
								text: '红色'
							},
							{
								text: '白色'
							},
							{
								text: '蓝色'
							},
							{
								text: '绿色'
							}
						]
					}
				]
			}
		};
	},
	onShow: function() {
		let that = this;
		// 初始化一个动画
		var animation = uni.createAnimation({
			duration: 500,
			timingFunction: 'ease'
		});
		this.animation = animation;
		
		
		// 先判断 系统版本
		uni.getSystemInfo({
			success: res => {
				that.system = res.system;
				that.platform = res.platform;
			},
			fail: err => {},
			complete: () => {}
		});
		that.loadData();
		 // console.log(that.system)
		 // console.log(that.platform)
	},
	onLoad(e) {
		var that = this;
		// setInterval(function() {
		// 	  that.n++
		// }, 1000);

		// var joindata = that.join;
		// for (var i=0;i<joindata.length;i++)
		// {
		//     that.getInfo(joindata[i].time,i);
		// }

		that.goodsId = e.id;
		//console.log(that.goodsId);
		
		//console.log(that.typeId)
	},
	methods: {
		goShare(e) {
			let that = this;
			let img_ = JSON.stringify(e.currentTarget.dataset.img);
			let id_ = e.currentTarget.dataset.id;
			that.Net._post('auth/info', { provider: 'users' }, res => {
				if (res.code == 200) {
					let userId = res.data.id;
					uni.share({
						provider: 'weixin',
						scene: 'WXSceneSession',
						type: 5,
						imageUrl: img_,
						title: '集合生活',
						miniProgram: {
							id: 'gh_7f0397c74a0d',
							path: 'pages/goods/goods?id=' + id_,
							type: 0,
							webUrl: 'http://app.jiheshenghuo.com/register/?inviter_id=' + userId
						},
						success: ret => {
							console.log(JSON.stringify(ret));
						}
					});
				}
			});
		},
		openMeiQiaChatView() {
			// 调用同步方法
			testModule.initChatViewManger();
			testModule.showMeiQiaChatView();
		},
		goBuyGoods() {
			let that = this;

			if (that.Carstatus != 1) {
				
				uni.navigateTo({
					url: '/pages/classify/order?goods_id=' + that.goodsId + '&sku_id=' + this.skuId + '&buy_num=' + that.num + '&collective_id=' + that.typeId
				});
				
			} else {
				that.Net._post('user/carts', { goods_id: that.goodsId, sku_id: this.skuId, buy_num: that.num }, res => {
					if (res.code == 200) {
						//console.log(res)
						that.pupu_show = !that.pupu_show;
						uni.showToast({
							title: '加入购物车成功',
							duration: 3000,
							icon: 'none'
						});
					}
				});
			}
		},
		loadData() {
			let that = this;
			that.Net._get('terminal/goods_info',{id:that.goodsId}, res => {
				if (res.code == 200) {
					//console.log(res)
					that.info = res.data;
					if (res.data.skuList) {
						if (res.data.is_collective == 1) {
							that.skuPrice = res.data.skuList[0].collective_price;
						} else {
							that.skuPrice = res.data.skuList[0].goods_price;
						}
					} else {
						if (res.data.is_collective == 1) {
							that.skuPrice = res.data.collective_price;
						} else {
							that.skuPrice = res.data.goods_price;
						}
					}

					let editSplitStr = '##qingwuit##';
					let content = res.data.goods_content;
					content = content.split(editSplitStr);
					that.strings = content[0];
					if (res.data.is_fav == 1) {
						that.collect = true;
					} else if (res.data.is_fav == 0) {
						that.collect = false;
					}
					that.join = res.data.collective_list;
					that.typeData = res.data.collectives;
					that.attrList = res.data.attrList;
					that.Specifications();
				}
			});
		},
		gotopage(e) {
			let url = e.currentTarget.dataset.url;
			uni.navigateTo({
				url: url
			});
		},
		gotopage02(e) {
			let url = e.currentTarget.dataset.url;
			uni.switchTab({
				url: url
			});
		},
		setMenuColor(index_) {
			this.select = index_;
		},
		openPreviewImage(e) {
			let that = this;
			let img_ = e.currentTarget.dataset.img;
			uni.previewImage({
				urls: [img_],
				longPressActions: {
					itemList: ['发送给朋友', '保存图片', '收藏'],
					success: function(data) {
						console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
					},
					fail: function(err) {
						console.log(err.errMsg);
					}
				}
			});
		},
		openPhone() {
			uni.showModal({
				title: '客服热线',
				content: '15880123228',
				success: function(res) {
					if (res.confirm) {
						//console.log('用户点击确定');
						uni.makePhoneCall({
							phoneNumber: '15880123228' //仅为示例
						});
					} else if (res.cancel) {
						//console.log('用户点击取消');
					}
				}
			});
		},
		setContentMenu(list, index) {
			let that = this;
			list.forEach(item => {
				this.$set(item, 'check', false);
			});
			this.$set(list[index], 'check', true);
			that.Specifications();
		},
		Specifications() {
			let that = this;
			// 循环获取选择的规格属性
			let chose_spec = [];
			that.info.attrList.forEach(res => {
				res['specs'].forEach(listRes => {
					if (listRes.check == true) {
						chose_spec.push(listRes.id);
					}
				});
			});

			// 如果选择数量和规格数量一致则表示选择完所有的规格属性
			if (chose_spec.length == that.info.attrList.length) {
				that.info.skuList.forEach(res => {
					let a = 0;
					chose_spec.forEach(specRes => {
						res.spec_id.forEach(itm => {
							if (itm == specRes) {
								a += 1;
							}
						});
					});
					if (a == that.info.attrList.length) {
						this.skuId = res.id;
						if (that.typeId == '-1') {
							console.log(1)
							this.skuPrice = res.collective_price;
						} else if (that.typeId == '0') {
							console.log(2)
							this.skuPrice = res.goods_price;
						}
					}
				});
			}
		},
		subNumber: function() {
			var this_ = this;
			if (this_.num == 1) {
				return false;
			} else {
				this_.num = this_.num - 1;
			}
		},
		addNumber: function() {
			var this_ = this;
			this_.num = this_.num + 1;
		},
		closeSku(){
			let that = this;
			that.pupu_show = !that.pupu_show;
			that.attrList[0].specs.forEach(item => {
				this.$set(item, 'check', false);
			});
			this.$set(that.attrList[0].specs[0], 'check', true);
			//console.log(that.attrList)
		},
		openCar(e) {
			let that = this;
			let type = e.currentTarget.dataset.type;
			let goodstype = e.currentTarget.dataset.goodstype;
			that.Carstatus = e.currentTarget.dataset.status;

			if (goodstype == 0) {
				type = '0';
			} else if (goodstype == 1) {
				type = '-1';
			}
			that.typeId = type;

			if (that.typeId == '0') {
				if (that.info.skuList) {
					that.skuPrice = that.info.skuList[0].goods_price;
				} else {
					that.skuPrice = that.info.goods_price;
				}
			} else if (that.typeId != '0') {
				if (that.info.skuList) {
					that.skuPrice = that.info.skuList[0].collective_price;
				} else {
					that.skuPrice = that.info.collective_price;
				}
			}

			that.pupu_show = !that.pupu_show;
		},
		backPage() {
			uni.navigateBack();
		},
		setCollect() {
			let that = this;
			that.Net._post('user/favorites', { is_type: '0', out_id: that.goodsId }, res => {
				if (res.code == 200) {
					//console.log(res)
					that.collect = !this.collect;
					if (that.collect == true) {
						uni.showToast({
							title: '收藏成功',
							icon: 'none',
							duration: 2000
						});
					} else {
						uni.showToast({
							title: '取消收藏',
							icon: 'none',
							duration: 2000
						});
					}
				}
			});
		},
		declick() {
			if (this.off) {
				// 使用动画
				this.showpupu();
			} else {
				this.closepupu();
			}
			this.off = !this.off;
		},
		showpupu() {
			this.animation
				.height()
				.opacity(1)
				.step();
			// 导出动画数据传递给data层
			this.animationData = this.animation.export();
		},
		closepupu() {
			this.animation
				.height(0)
				.opacity(0)
				.step();
			// 导出动画数据传递给data层
			this.animationData = this.animation.export();
		},
		keepImg() {
			// uni.downloadFile({
			// 	url: res.data, //网络路径，下载下来
			// 	success: res1 => {
			// 		if (res1.statusCode === 200) {
			// 			uni.saveImageToPhotosAlbum({
			// 				filePath: res.data,
			// 				success: res2 => {
			// 					//下载完成后在相册里压根找不到
			// 				}
			// 			});
			// 		}
			// 	}
			// });

			// this.declick();
			this.off = true;
			this.keepimg = !this.keepimg;
		},
		closeKeep() {
			this.keepimg = !this.keepimg;
		},
		autoSpell() {
			this.spell = !this.spell;
		},
		getInfo(times, i) {
			var that = this;
			// let timestamp = Date.parse(new Date());
			// timestamp = timestamp / 1000;
			setInterval(function() {
				var letime = that.timestamp - times;
				var time = parseInt(letime);
				var h = 0;
				time -= that.n;

				var minute = parseInt(time / 60);
				var second = parseInt(time % 60);

				if (minute > 60) {
					//如果分钟大于60，将分钟转换成小时
					h = parseInt(minute / 60); //获取小时，获取分钟除以60，得到整数小时
					minute = parseInt(minute % 60); //获取小时后取佘的分，获取分钟除以60取佘的分
				}
				//console.log('还剩' + h + '小时' + minute + '分' + second + '秒');
				//console.log(h + ':' + minute + ':' + second);
				that.join[i].t = h + ':' + minute + ':' + second;
			}, 1000);
		}
	},
	onReachBottom() {
		var that = this;
		
	},
	onPageScroll: function(Object) {
		//console.log(Object.scrollTop); //实时获取到滚动的值
		if (Object.scrollTop > 28) {
			this.scrrol = true;
			/* #ifdef APP-PLUS */
			plus.navigator.setStatusBarStyle('light');
			/* #endif */
		} else if (Object.scrollTop < 28) {
			this.scrrol = false;
			/* #ifdef APP-PLUS */
			plus.navigator.setStatusBarStyle('dark');
			/* #endif */
		}
	}
};
</script>

<style>
	.clear_box09{
		height: 6vw;
		width: 100%;
	}
.header {
	background-color: transparent;
}

.scrrolHeader {
	background-color: #FF9822 !important;
}

.scrrolHeader02 {
	color: #ffffff !important;
	transition: 0.5s;
	background-color: transparent !important;
}

.back_box {
	width: 40px;
	height: 90px;
	position: fixed;
	bottom: 70px;
	right: 5px;
	z-index: 9999999;
}

.back_box .menu {
	width: 100% !important;
	box-sizing: border-box;
	background-color: #FF9822;
	height: 40px;
	border-radius: 6px;
	padding: 0 !important;
	padding-top: 4px !important;
	margin-top: 10px;
	line-height: 17px;
}

.back_box .menu:nth-child(2) {
	border: 0px solid #FF9822 !important;
}

.back_box .menu .icon {
	width: 100%;
	text-align: center;
	font-size: 18px;
	color: #fff;
}

.back_box .menu .text {
	width: 100%;
	text-align: center;
	margin-top: 0px;
	font-size: 8px;
	color: #fff;
}

.header {
	width: 100%;
	height: 20vw;
	display: flex;
	position: fixed;
	top: calc(0 + var(--status-bar-height));
	/* background-color: #ffdb4e; */
	z-index: 9999;
}

.header .back {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	line-height: 38px;
	text-align: center;
	font-size: 14px;
	color: #fff;
	background: rgba(0, 0, 0, 0.4);
	position: absolute;
	left: 15px;
}

.header .share {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	line-height: 38px;
	text-align: center;
	font-size: 24px;
	color: #fff;
	background: rgba(0, 0, 0, 0.4);
	position: absolute;
	right: 15px;
}

.header .location_box {
	height: 50px;
	width: 70px;
	display: flex;
	margin-right: 10px;
}

.header .location_box .location {
	font-size: 14px;
	color: #333;
	line-height: 50px;
	margin-right: 5px;
	margin-left: 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header .location_box .arrow {
	font-size: 10px;
	color: #666;
	line-height: 50px;
}

.header .search {
	width: calc(100% - 40px);
	height: 30px;
	margin-top: 10px;
	display: flex;
	background-color: #fff;
	border-radius: 30px;
}

.header .search .icon {
	font-size: 14px;
	color: #666;
	line-height: 30px;
	margin-left: 10px;
}

.header .search input {
	font-size: 12px;
	color: #333;
	height: 30px;
	line-height: 30px;
	margin-left: 10px;
}

.header .more {
	width: 30px;
	height: 50px;
	text-align: center;
	line-height: 50px;
	font-size: 16px;
	color: #333;
}

.swiper_box {
	width: 100%;
	height: 350px;
	position: relative;
	box-shadow: 0px 4px 4.65px 0.35px rgba(51, 51, 51, 0.09);
}

.swiper_box .num_box {
	width: 40px;
	height: 20px;
	border-radius: 30px;
	background-color: #cacaca;
	text-align: center;
	line-height: 20px;
	font-size: 12px;
	position: absolute;
	right: 15px;
	bottom: 10px;
	z-index: 99999;
	color: #fff;
	letter-spacing: 2px;
}

.swiper_box image {
	width: 100%;
	height: 100%;
}

.money_box {
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-indent: 15px;
	color: #FF9822;
	margin-top: 20px;
	background-color: #fff;
	font-size: 16px;
	font-weight: bold;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.money_box .type{
	background-color: #FF9822;
	height: 6vw;
	width: 16vw;
	border-radius: 2vw;
	color: #fff;
	font-size: 3vw;
	display: flex;
	align-items: center;
	margin-left: 3vw;

}

.money_box .y_money {
	font-size: 10px;
	color: #999;
	margin-left: 5px;
	position: relative;
	text-indent: 0;
	font-weight: 200;
	line-height: 42px;
}

.money_box .y_money .line {
	width: 100%;
	height: 1px;
	background-color: #999;
	position: absolute;
	left: 0;
	top: calc(50% - 0.5px);
}

.title_box {
	width: 100%;
	padding: 0 15px;
	font-size: 14px;
	color: #333;
	line-height: 20px;
	background-color: #fff;
}

.coupon_box {
	width: 100%;
	height: 35px;
	display: flex;
	background-color: #fff;
	position: relative;
}

.coupon_box .text {
	width: 100%;
	text-indent: 15px;
	line-height: 34px;
	color: #FF9822;
	font-size: 12px;
}

.coupon_box02 {
	width: 100%;
	box-sizing: border-box;
	padding-left: 4%;
	padding-bottom: 3vw;
	display: flex;
	background-color: #fff;
	position: relative;
	padding-top: 1vw;
}

.coupon_box02 .text {
	width: 100%;
	color: #FF9822;
	font-size: 12px;
}

.coupon_box .state {
	padding: 3px 5px;
	color: #fff;
	font-size: 10px;
	background-color: #ff3744;
	position: absolute;
	left: 50px;
	top: 14px;
}

.coupon_box .arrow {
	font-size: 14px;
	color: #999;
	line-height: 50px;
	position: absolute;
	right: 15px;
}

.message_box {
	width: 100%;
	padding-bottom: 10px;
	display: flex;
	margin-bottom: 10px;
	background-color: #fff;
}

.message_box .message {
	width: 33%;
	font-size: 12px;
	color: #999;
}

.message_box .message:nth-child(1) {
	text-align: left;
	margin-left: 15px;
	width: calc(33% - 15px);
}

.message_box .message:nth-child(2) {
	text-align: center;
}

.message_box .message:nth-child(3) {
	text-align: right;
	margin-right: 15px;
	width: calc(33% - 15px);
}

.nav {
	width: 100%;
	height: 40px;
	display: flex;
	background-color: #fff;
	margin-top: 10px;
}

.nav .menu {
	width: 50%;
	height: 40px;
	text-align: center;
	line-height: 40px;
	font-size: 14px;
	color: #999;
	position: relative;
}

.nav .menu .line {
	width: 18px;
	height: 5px;
	background-color: #fff;
	position: absolute;
	bottom: 0;
	left: calc(50% - 9px);
	border-radius: 5px;
}

.menucolor {
	color: #333 !important;
	font-weight: bold;
}

.menucolor02 {
	background-color: #ff7f22 !important;
}

.content_box {
	width: 100%;
}

.content_box .more{
	width: 100%;
	height: 12vw;
	line-height: 12vw;
	font-size: 3.5vw;
	color: #666;
	text-align: center;
	background-color: #fff;
	border-top: 1px solid #f6f6f6;
}

.fwb {
	width: 100% !important;
}

.fwb p{
	width: 100% !important;
}

.fwb img {
	width: 100% !important;
}

.content_list {
	width: 100%;
	display: flex;
}

.content_list .round_box {
	width: 26px;
	height: 100%;
}

.content_list .round_box .line {
	width: 1px;
	height: calc(100% - 10px);
	border-right: 1px dashed #b3b3b3;
	margin: 0 auto;
}

.content_list .round_box .round {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #e6e6e6;
	margin: 0 auto;
	position: relative;
}

.content_list .round_box .round .r {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: #c4c4c4;
	position: absolute;
	left: calc(50% - 2.5px);
	top: calc(50% - 2.5px);
}

.content_list .list_box {
	width: calc(100%);
	height: 100%;
	position: relative;
}

.content_list .list_box .line {
	width: 1px;
	height: calc(100% - 10px);
	border-right: 1px dashed #b3b3b3;
	position: absolute;
	top: 10px;
	left: -13.5px;
}

.content_list .list_box .man_box {
	width: 100%;
	height: 40px;
	position: relative;
	background-color: #fff;
	border-radius: 6px 0 0 0;
}

.content_list .list_box .man_box .portrait {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	position: absolute;
	left: 5px;
	top: 5px;
}

.content_list .list_box .man_box .portrait image {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.content_list .list_box .man_box .name {
	font-size: 12px;
	color: #202020;
	position: absolute;
	left: 40px;
	top: 5px;
}

.content_list .list_box .man_box .time {
	font-size: 10px;
	color: #999;
	position: absolute;
	left: 40px;
	bottom: 5px;
}

.content_list .list_box .man_box .stars_box {
	position: absolute;
	right: 10px;
	top: 10px;
	display: flex;
	height: 20px;
}

.content_list .list_box .man_box .stars_box .star {
	line-height: 20px;
	color: #bdbdbd;
	font-size: 10px;
	margin-left: 2px;
}

.content_list .list_box .man_box .stars_box .star02 {
	line-height: 20px;
	color: #ffdb4e;
	font-size: 10px;
	margin-left: 2px;
}

.content_list .list_box .text_box {
	background-color: #fff;
	font-size: 13px;
	color: #333;
	line-height: 20px;
	padding: 0px 10px 10px 10px;
	/* border-radius: 0 0 0 6px; */
}

.content_list .list_box .goods_img {
	width: 100%;
	background-color: #fff;
	padding: 0px 10px 5px 10px;
	border-radius: 0 0 0 6px;
	display: flex;
	flex-direction: row;
	justify-content: left;
	flex-wrap: wrap;
}

.content_list .list_box .goods_img::after {
	flex: auto;
	content: '';
}

.content_list .list_box .goods_img image {
	width: 30%;
	height: 110px;
	margin-left: 2.5%;
	flex-basis: auto;
}

.footer_box {
	width: 100%;
	position: fixed;
	bottom: 0;
	background-color: #fff;
}

.footer_box .rule {
	font-size: 2.8vw;
	color: #FF9822;
	width: 95.5%;
	margin: 0 auto;
	padding: 2vw 0;
	display: none;
}

.ruleStyle {
	display: block !important;
}

.footer {
	width: 100%;
	background-color: #ffffff;
	display: flex;
	padding: 2vw 0;
}

.footer .menu {
	flex: 1;
	background-color: #FF9822;
	color: #fff;
	text-align: center;
	border-radius: 11vw;
	height: 11vw;
	line-height: 11vw;
	margin: 0 4%;
	margin-top: 0.7vw;
}

/* .footer .menu:nth-child(1) {
	background-color: #fff;
	display: flex;
	width: 20vw;
}

.footer .menu:nth-child(2) {
	flex: 1;
	background-color: #FF9822;
	color: #fff;
	text-align: center;
	line-height: 50px;
}

.footer .menu:nth-child(3) {
	flex: 1;
	background-color: #FF9822;
	color: #fff;
	text-align: center;
	line-height: 50px;
} */

.footer .menu .bt {
	width: 100%;
	height: 100%;
}

.footer .menu .bt02{
	border: none;
	padding: 0 !important;
}

.footer .menu .bt .icon {
	width: 100%;
	text-align: center;
	font-size: 5vw;
	color: #333;
	margin-top: 10px;
}

.footer .menu .bt02 .icon{
	margin-top: -6px !important;
}

.footer .menu .bt02 .text{
	margin-top: -20px !important;
}

.footer .menu .bt .text {
	width: 100%;
	text-align: center;
	font-size: 3.5vw;
	color: #333;
	margin-top: 0.5vw;
}

.collectcolor {
	color: #FF9822 !important;
}

.show_box {
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	position: fixed;
	top: 0;
	z-index: 99;
}

.show_box .pupu_box {
	width: 100%;
	position: absolute;
	bottom: 0;
	background-color: #fff;
}

.show_box .pupu_box .goods_box {
	width: 100%;
	height: 100px;
	position: relative;
}

.show_box .pupu_box .goods_box .bg01 {
	width: 80px;
	height: 80px;
	position: absolute;
	left: 10px;
	top: 10px;
}

.show_box .pupu_box .goods_box .title {
	font-size: 12px;
	color: #333;
	position: absolute;
	left: 100px;
	top: 15px;
	width: calc(100% - 160px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.show_box .pupu_box .goods_box .num {
	font-size: 12px;
	color: #333;
	position: absolute;
	left: 100px;
	top: 40px;
	width: calc(100% - 160px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.show_box .pupu_box .goods_box .money {
	font-size: 12px;
	color: #FF9822;
	position: absolute;
	left: 100px;
	bottom: 15px;
	width: calc(100% - 160px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.show_box .pupu_box .goods_box .close {
	font-size: 10px;
	color: #d1d1d1;
	position: absolute;
	right: 10px;
	top: 15px;
	width: 24px;
	text-align: center;
	height: 24px;
	line-height: 20px;
	border: 2px solid #d1d1d1;
	border-radius: 50%;
}

.show_box .pupu_box .norms_box {
	width: 100%;
	border-bottom: 1px solid #f5f5f5;
}

.show_box .pupu_box .norms_box .title {
	width: 100%;
	height: 30px;
	line-height: 30px;
	font-size: 12px;
	color: #333;
	text-indent: 10px;
}

.show_box .pupu_box .norms_box .menu_box {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: left;
	flex-wrap: wrap;
}

.show_box .pupu_box .norms_box .menu_box::after {
	flex: auto;
	content: '';
}

.show_box .pupu_box .norms_box .menu_box .menu {
	padding: 7px 18px;
	border: 1px solid #f5f5f5;
	background-color: #f5f5f5;
	box-sizing: border-box;
	flex-basis: auto;
	margin-bottom: 2%;
	margin-left: 2%;
	font-size: 10px;
	color: #333;
	text-align: center;
	border-radius: 15.5px;
}

.selected {
	background-color: #ffd9de !important;
	color: #FF9822 !important;
	border: 1px solid #FF9822 !important;
}

.show_box .pupu_box .number_box {
	width: 100%;
	height: 50px;
	position: relative;
}

.show_box .pupu_box .number_box .text {
	font-size: 12px;
	color: #333;
	line-height: 50px;
	position: absolute;
	left: 10px;
	display: flex;
}

.show_box .pupu_box .number_box .text .n {
	color: #FF9822;
	margin-left: 10px;
}

.show_box .pupu_box .number_box .num_box {
	position: absolute;
	right: 10px;
	bottom: 14px;
	width: 90px;
	height: 23px;
	display: flex;
	background-color: #f5f5f5;
	border-radius: 23px;
}

.show_box .pupu_box .number_box .num_box .symbol {
	width: 28px;
	height: 23px;
	line-height: 23px;
	font-size: 13px;
	color: 333;
	text-align: center;
}

.show_box .pupu_box .number_box .num_box .symbol:nth-child(1) {
	border-right: 1px solid #fff;
}

.show_box .pupu_box .number_box .num_box .symbol:nth-child(3) {
	border-left: 1px solid #fff;
}

.show_box .pupu_box .number_box .num_box .num {
	width: calc(100% - 56px);
	height: 23px;
	line-height: 23px;
	font-size: 14px;
	color: 333;
	text-align: center;
}

.show_box .pupu_box .define {
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	color: #fff;
	font-size: 12px;
	background-color: #FF9822;
}

.join_box {
	width: 100%;
	background-color: #fff;
}

.join_box .join_title {
	width: 100%;
	height: 30px;
	font-size: 12px;
	color: #333;
	line-height: 30px;
	text-indent: 15px;
	border-bottom: 1px solid #f5f5f5;
}

.join_box .swiper_box02 {
	width: 100%;
	height: 150px;
}

.join_box .join {
	width: 100%;
	height: 50px;
	display: flex;
}

.join_box .join .left_box {
	width: 50%;
	height: 50px;
	display: flex;
	align-items: center;
}

.join_box .join .left_box .portrait {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin: 5px 10px 0 15px;
}

.join_box .join .left_box .name {
	width: calc(100% - 65px);
	font-size: 12px;
	line-height: 50px;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.join_box .join .right_box {
	width: 50%;
	height: 50px;
	display: flex;
	align-items: center;
}

.join_box .join .right_box .menu {
	width: 68px;
	height: 30px;
	text-align: center;
	line-height: 30px;
	color: #fff;
	margin: 10px 15px 0 10px;
	background-color: #FF9822;
	border-radius: 4px;
}

.join_box .join .right_box .text_box {
	width: calc(100% - 93px);
}

.join_box .join .right_box .text_box .text01 {
	font-size: 10px;
	margin-top: 7px;
	color: #333;
	display: flex;
	justify-content: flex-end;
}

.join_box .join .right_box .text_box .text01 .t {
	color: #f72f4b !important;
}

.join_box .join .right_box .text_box .text02 {
	font-size: 10px;
	margin-top: 2px;
	color: #333;
	display: flex;
	justify-content: flex-end;
}

.join_box .join .right_box .text_box .text02 .n {
	color: #999 !important;
}

.hb_box {
	width: 100%;
	background-color: #fff;
	text-align: center;
	padding: 10px 0 0 0;
}

.hb_box image {
	width: 92%;
	position: relative;
}

.hb_box .text {
	font-size: 8px;
	color: #fff;
	position: absolute;
	right: 96px;
	bottom: -50px;
}

.mode_box {
	width: 100%;
	height: 40px;
	position: relative;
	background-color: #fff;
	display: flex;
}

.mode_box .text {
	font-size: 12px;
	color: #333;
	position: absolute;
	left: 15px;
	line-height: 40px;
}

.mode_box .arrow {
	font-size: 14px;
	color: #999;
	position: absolute;
	right: 15px;
	line-height: 40px;
}

.mode_box .state_box {
	display: flex;
	width: 100%;
}

.mode_box .state_box .state {
	display: flex;
	margin-left: 3%;
}

.mode_box .state_box .state .icon {
	line-height: 16px;
	color: green;
	font-size: 12px;
	width: 16px;
	height: 16px;
	border: 1px solid green;
	text-align: center;
	margin-top: 12px;
	border-radius: 50%;
	margin-right: 10px;
}

.mode_box .state_box .state .text03 {
	line-height: 40px;
	color: #333;
	font-size: 12px;
}

.mode_box02 {
	width: 100%;
	background-color: #fff;
	display: flex;
	margin: 0 auto;
	padding: 10px 0;
}

.mode_box02 .mode {
	width: 31%;
	display: flex;
	margin-left: 3%;
}

.mode_box02 .mode:nth-last-child(1) {
	width: 26%;
}

.mode_box02 .mode .icon {
	width: 22px;
	height: 22px;
	line-height: 22px;
	border-radius: 50%;
	border: 1px solid #FF9822;
	text-align: center;
	color: #FF9822;
	font-size: 14px;
	margin-right: 8px;
}

.mode_box02 .mode .content {
	width: calc(100% - 30px);
}

.mode_box02 .mode .content .arrow_box {
	width: 100%;
	display: flex;
}

.mode_box02 .mode .content .arrow_box .text {
	font-size: 2.5vw;
	color: #333;
	margin-right: 5px;
	/* width: 50%; */
}

.mode_box02 .mode .content .arrow_box .arrow {
	width: calc(50% - 5px);
}

.mode_box02 .mode .content .arrow_box .arrow image {
	width: 100%;
}

.mode_box02 .mode .content .describe {
	font-size: 2.5vw;
	color: #999;
	line-height: 15px;
}

.shop_box {
	width: 100%;
	position: relative;
	height: 90px;
	background-color: #fff;
	margin-top: 10px;
}

.shop_box .img {
	width: 38px;
	height: 38px;
	position: absolute;
	left: 15px;
	top: 15px;
}

.shop_box .shop_name {
	font-size: 12px;
	color: #333;
	position: absolute;
	top: 26px;
	left: 63px;
}

.shop_box .star_box {
	position: absolute;
	left: 15px;
	bottom: 10px;
	display: flex;
	height: 20px;
}

.shop_box .star_box .text {
	font-size: 10px;
	color: #333;
	line-height: 20px;
}

.shop_box .star_box .star {
	line-height: 20px;
	color: #bdbdbd;
	font-size: 10px;
	margin-left: 5px;
}

.shop_box .star_box .star02 {
	line-height: 20px;
	color: #ffdb4e;
	font-size: 10px;
	margin-left: 5px;
}

.shop_box .menu {
	width: 68px;
	height: 30px;
	border: 1px solid #999;
	color: #333;
	text-align: center;
	border-radius: 4px;
	line-height: 28px;
	font-size: 12px;
	position: absolute;
	right: 15px;
	top: 15px;
}

.shop_box .num {
	color: #999;
	font-size: 12px;
	position: absolute;
	right: 15px;
	bottom: 12px;
}

.share_bg {
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	position: fixed;
	top: 0;
	z-index: 999999;
}

.share_box {
	width: 100%;
	height: 124px;
	border-radius: 20px 20px 0 0;
	background-color: #fff;
	position: absolute;
	bottom: 0;
	opacity: 0;
}

.share_box .share {
	/* width: 100%; */
	height: 60px;
	display: flex;
	justify-content: center;
	margin: 30px 16px 16px 16px;
}

.share_box .share .menu {
	width: 50px;
	height: 60px;
	text-align: center;
	/* margin-right: 30px; */
}

.share_box .share .menu:nth-child(2) {
	margin: 0 50px;
}

.share_box .share .menu image {
	width: 43px;
}

.share_box .share .menu .text {
	font-size: 12px;
	color: #333;
	text-align: center;
	line-height: 20px;
}

.share_box .close {
	width: 100%;
	height: 30px;
	line-height: 30px;
	text-align: center;
	font-size: 20px;
	color: #666;
}

/* 图片保存提示框 */

.show_box .keep_box {
	width: 70%;
	background-color: #fff;
	border-radius: 10px;
	position: absolute;
	left: calc(50% - 35%);
	top: calc(50% - 90px);
}

.show_box .keep_box .cancel {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	line-height: 30px;
	text-align: center;
	font-size: 16px;
	color: #666;
	background-color: #f5f5f5;
	position: absolute;
	right: -15px;
	top: -15px;
}

.show_box .keep_box .icon {
	width: 100%;
	height: 80px;
	text-align: center;
	line-height: 80px;
	font-size: 60px;
	color: #cecece;
}

.show_box .keep_box .text {
	padding: 0 20px;
	line-height: 20px;
	font-size: 14px;
	color: #333;
	text-align: center;
}

.show_box .keep_box .menu {
	width: 80%;
	height: 40px;
	line-height: 40px;
	margin: 10px auto;
	background-color: #FF9822;
	border-radius: 6px;
	font-size: 14px;
	color: #fff;
	text-align: center;
	margin-bottom: 15px;
}

/* 拼团提示框 */
.show_box .keep_box .spell_text {
	padding: 10px 20px 0 20px;
	line-height: 20px;
	font-size: 14px;
	color: #333;
	text-align: center;
	word-wrap: break-word;
}

.show_box .keep_box .img_box {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 20px 0 10px 0;
}

.show_box .keep_box .img_box .img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	position: relative;
}

.show_box .keep_box .img_box .img image {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.show_box .keep_box .img_box .img:nth-child(1) {
	margin-right: 5%;
}

.show_box .keep_box .img_box .img .label {
	font-size: 10px;
	color: #d68b16;
	background-color: #fec248;
	padding: 2px;
	border-radius: 12px;
	position: absolute;
	left: 0;
	top: -5px;
}

.home_go {
	width: 12vw;
	height: 12vw;
	border-radius: 50%;
	background-color: rgba(255, 127, 34, 0.6);
	color: #fff;
	font-size: 7vw;
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	right: 2%;
	bottom: 30vh;
}

.pageTitle{
	width: 100%;
	text-align: center;
	line-height: 13vw;
	height: 13vw;
	font-size: 4vw;
	color: #333;
	font-weight: bold;
	margin-top: 3vw;
}
</style>
